package com.easylinkin.linkappapi.hcmy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.hcmy.entity.CarManage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * class info :
 *
 * @author hongyikang
 * @date 2021/8/17 15:04
 */
public interface CarManageMapper extends BaseMapper<CarManage> {

    int add(@Param("carManage") CarManage carManage);

    IPage<CarManage> getPage(Page page,@Param("carManage") CarManage carManage);

    CarManage getById(Long id);

    int update(@Param("carManage") CarManage carManage);

    int delById(Long id);

    List<CarManage> getCarManageList(@Param("carManage") CarManage carManage);

    void saveBatchCarManages(List<CarManage> carManages);

    String getDeviceIdByCode(@Param("deviceCode") String deviceCode, @Param("tenantId") String tenantId);
}
